package cn.sdormitory.service;

import cn.sdormitory.basedata.entity.BDormitory;
import cn.sdormitory.smartdor.entity.SdHygiene;
import cn.sdormitory.smartdor.vo.SdHygieneVo;
import cn.sdormitory.sysset.entity.SyssetHygieneDeduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @创建人：zhouyang
 * @创建时间：2021/1/8 15:09
 * @version：V1.0
 */
public interface AppHygieneService {
    List<SdHygieneVo> getHygieneAll(String checkDate,String storey,String buildingNo);

    List<BDormitory> getBDormitoryListByCol(String buildingNo,String storey);

    List<SyssetHygieneDeduct> getHyDeListAll();

    SdHygiene getByCheckDateAndBdId(String checkDate,Long bdormitoryId);

    BDormitory getBDormitoryById(Long id);

    SyssetHygieneDeduct getSyssetHygieneDeductById(Long id);

    int insertSdHygieneAndDeduct(SdHygiene sdHygiene);

    int create(SdHygiene sdHygiene);

    String getDeOptionsById(Long hygieneId);

    SdHygiene getAppHygieneById(Long id);

    int delete(Long id);

    int updateSdHygieneAndDeduct(SdHygiene sdHygiene);

    void delAndCreateHygiene(Long hygieneId, List<Long> deductIdList);

    void insertHygieneAndHygieneDeduct(Long hygieneId, List<Long> deductIdList);

    List<Long> listDeductIdByHygieneId(Long hygieneId);

    SdHygieneVo getAppHygieneByBIdAndDate(Long bdormitoryId,String checkDate);
}
